package com.lpf.back.common.oss;

import com.aliyun.oss.OSSClient;
import com.lpf.back.common.OssConstant;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OssConfig {

    @Bean
    public OSSClient ossClient() {
        return new OSSClient(OssConstant.END_POINT, OssConstant.ACCESS_KEY_ID, OssConstant.ACCESS_KEY_SECRET);
    }
}
